import request from '../utils/request'

export function login(data) {
  return request({
    url: '/Check/Login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/Check/GetUserName',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/Check/Logout',
    method: 'post'
  })
}

export function changePwd(pwd) {
  return request({
    url: `/Users/ChangePassWd?passwd=${pwd}`,
    method: 'post'
  })
}
